<include file="public@header" />
</head>

<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:url('AdminYear/index')}">汽车年份管理</a></li>
            <li><a href="{:url('AdminYear/add')}">添加汽车年份</a></li>
            <li class="active"><a href="#">编辑汽车年份</a></li>
        </ul>
        <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('AdminYear/editPost')}">

            <div class="form-group">
                <label class="col-sm-2 control-label"><span class="form-required">*</span>汽车年份:</label>
                <div class="col-md-6 col-sm-10">
                    <input type="text" class="form-control" name="year" value="{$year.year|default=''}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">状态:</label>
                <div class="col-md-6 col-sm-10">
                    <select name="status" class="form-control">
					<foreach name="arrStatus" key="k" item="vo">
						<option value="{$k}" {$year.status == $k?'selected':''}>{$vo}</option>
					</foreach>
				</select>
                </div>
            </div>
            <div class="col-sm-offset-2 col-sm-10">
                <input type="hidden" class="form-control" name="id" value="{$year.id}">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang("SAVE")}</button>
                <a class="btn btn-default" href="__URL__">返回</a>
            </div>
        </form>

    </div>
    <script src="__STATIC__/js/admin.js"></script>
</body>

</html>